package com.general.api.interfaces;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author SongJiuHua.
 * @date Created on 2018/1/31.
 * @description
 */
@FeignClient(value = "admin-server")
public interface TestApiHelloService {

    /**
     * 调用admin-server服务的hello接口
     * @param name
     * @return
     */
    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    String sayHelloToAdminServer(@RequestParam(value = "name") String name);

}
